package com.company.shop;

import com.company.creature.Creature;

/**
 * @description:
 * @author: ZhaoYicong
 * @date: Created in 2020/4/27 17:16
 * @version: v1.0
 * @modified By:
 */
public abstract class Shop {
    private int smoney;
    private String id;
    private String name;
    private String say;
    public abstract void function(Creature creature);
    public  void show(){
        System.out.println(this.getName()+"("+this.getId()+")"+"它的价格是：\t"+this.getSmoney()+"\t 它的功能是："+this.getSay());
    }

    public Shop() {
    }

    public String getSay() {
        return say;
    }

    public void setSay(String say) {
        this.say = say;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Shop(int smoney, String id, String name) {
        this.smoney = smoney;
        this.id = id;
        this.name = name;
    }

    public int getSmoney() {
        return smoney;
    }

    public void setSmoney(int smoney) {
        this.smoney = smoney;
    }
}
